package com.xw.dao;

import com.xw.model.DicLimit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Component
public interface DicLimitMapper extends Mapper<DicLimit> {

    List<DicLimit> findByWhere(DicLimit model);

    /**
     * 查询一级菜单
     * @return
     */
    List<DicLimit> findFirstLevel();

    /**
     * 根据父级id删除权限
     * @param limitId
     * @return
     */
    Integer delByPid(@Param("limitId") String limitId);
}